.class public Lcom/xingbook/audio/a/d;
.super Lcom/xingbook/park/a/e;

# interfaces
.implements Lcom/xingbook/park/ui/o;


# instance fields
.field private f:Lcom/xingbook/audio/b/a;

.field private g:Lcom/xingbook/audio/d/l;

.field private h:Ljava/util/ArrayList;

.field private i:Z

.field private j:Z

.field private k:Z

.field private l:I

.field private m:Lcom/xingbook/audio/a/e;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/park/c/a/p;Lcom/xingbook/audio/d/l;Lcom/xingbook/audio/a/e;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Lcom/xingbook/park/a/e;-><init>(Landroid/app/Activity;Lcom/xingbook/park/c/a/p;)V

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->i:Z

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->j:Z

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->k:Z

    iput v0, p0, Lcom/xingbook/audio/a/d;->l:I

    iput-object p3, p0, Lcom/xingbook/audio/a/d;->g:Lcom/xingbook/audio/d/l;

    iput-object p4, p0, Lcom/xingbook/audio/a/d;->m:Lcom/xingbook/audio/a/e;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public a(IZ)Lcom/xingbook/park/c/a/n;
    .locals 6

    const/4 v5, 0x0

    const/4 v0, 0x0

    invoke-static {p1}, Lcom/xingbook/c/t;->g(I)I

    move-result v1

    invoke-static {p1}, Lcom/xingbook/c/t;->e(I)Z

    move-result v2

    const/16 v3, 0x50

    if-ne v1, v3, :cond_2

    if-eqz v2, :cond_1

    new-instance v0, Lcom/xingbook/audio/d/m;

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/d;->a:F

    invoke-direct {v0, v1, v2, p2, p0}, Lcom/xingbook/audio/d/m;-><init>(Landroid/content/Context;FZLcom/xingbook/park/ui/o;)V

    move-object v1, v0

    :goto_0
    if-eqz v1, :cond_0

    instance-of v0, v1, Lcom/xingbook/service/download/m;

    if-eqz v0, :cond_0

    iget-object v2, p0, Lcom/xingbook/audio/a/d;->d:Ljava/util/ArrayList;

    new-instance v3, Ljava/lang/ref/WeakReference;

    move-object v0, v1

    check-cast v0, Lcom/xingbook/service/download/m;

    invoke-direct {v3, v0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    return-object v1

    :cond_1
    new-instance v0, Lcom/xingbook/audio/d/g;

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/d;->a:F

    iget-object v3, p0, Lcom/xingbook/audio/a/d;->g:Lcom/xingbook/audio/d/l;

    move-object v4, p0

    invoke-direct/range {v0 .. v5}, Lcom/xingbook/audio/d/g;-><init>(Landroid/app/Activity;FLcom/xingbook/audio/d/l;Lcom/xingbook/park/ui/o;Z)V

    move-object v1, v0

    goto :goto_0

    :cond_2
    const/16 v3, 0x40

    if-ne v1, v3, :cond_5

    if-eqz v2, :cond_3

    new-instance v0, Lcom/xingbook/audio/d/m;

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/d;->a:F

    invoke-direct {v0, v1, v2, p2, p0}, Lcom/xingbook/audio/d/m;-><init>(Landroid/content/Context;FZLcom/xingbook/park/ui/o;)V

    move-object v1, v0

    goto :goto_0

    :cond_3
    const/16 v0, 0x42

    if-ne p1, v0, :cond_4

    new-instance v0, Lcom/xingbook/audio/d/e;

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/d;->a:F

    invoke-direct {v0, v1, v2}, Lcom/xingbook/audio/d/e;-><init>(Landroid/app/Activity;F)V

    move-object v1, v0

    goto :goto_0

    :cond_4
    new-instance v0, Lcom/xingbook/audio/d/g;

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/d;->a:F

    iget-object v3, p0, Lcom/xingbook/audio/a/d;->g:Lcom/xingbook/audio/d/l;

    move-object v4, p0

    invoke-direct/range {v0 .. v5}, Lcom/xingbook/audio/d/g;-><init>(Landroid/app/Activity;FLcom/xingbook/audio/d/l;Lcom/xingbook/park/ui/o;Z)V

    move-object v1, v0

    goto :goto_0

    :cond_5
    move-object v1, v0

    goto :goto_0
.end method

.method public a()V
    .locals 4

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/audio/a/d;->l:I

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->j()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_4

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->k()I

    move-result v0

    const/16 v2, 0x40

    if-eq v0, v2, :cond_1

    const/16 v2, 0x41

    if-eq v0, v2, :cond_1

    const/16 v2, 0x50

    if-ne v0, v2, :cond_3

    :cond_1
    new-instance v0, Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->k()I

    move-result v2

    invoke-static {v2}, Lcom/xingbook/c/t;->c(I)I

    move-result v2

    invoke-direct {v0, v2}, Lcom/xingbook/audio/b/a;-><init>(I)V

    iput-object v0, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->l()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/xingbook/audio/b/a;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->m()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {v3}, Lcom/xingbook/audio/b/a;->s()I

    move-result v3

    invoke-static {v2, v3}, Lcom/xingbook/audio/b/a;->b(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/String;)V

    if-eqz v1, :cond_3

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_3

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_2
    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_6

    :cond_3
    return-void

    :cond_4
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    instance-of v3, v0, Lcom/xingbook/b/n;

    if-eqz v3, :cond_5

    iget v0, p0, Lcom/xingbook/audio/a/d;->l:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/xingbook/audio/a/d;->l:I

    goto :goto_0

    :cond_5
    instance-of v3, v0, Lcom/xingbook/park/b/f;

    if-eqz v3, :cond_0

    iget v3, p0, Lcom/xingbook/audio/a/d;->l:I

    check-cast v0, Lcom/xingbook/park/b/f;

    invoke-virtual {v0}, Lcom/xingbook/park/b/f;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/2addr v0, v3

    iput v0, p0, Lcom/xingbook/audio/a/d;->l:I

    goto :goto_0

    :cond_6
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    instance-of v2, v0, Lcom/xingbook/audio/b/b;

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    check-cast v0, Lcom/xingbook/audio/b/b;

    invoke-virtual {v2, v0}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/Object;)V

    goto :goto_1
.end method

.method public a(Z)V
    .locals 2

    const/4 v1, 0x0

    iput-boolean p1, p0, Lcom/xingbook/audio/a/d;->k:Z

    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iput-boolean v1, p0, Lcom/xingbook/audio/a/d;->i:Z

    iput-boolean v1, p0, Lcom/xingbook/audio/a/d;->j:Z

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->notifyDataSetChanged()V

    return-void
.end method

.method public declared-synchronized a(Ljava/lang/String;)Z
    .locals 4

    const/4 v0, 0x0

    const/4 v1, 0x1

    monitor-enter p0

    :try_start_0
    iget-object v2, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v2, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v2, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-boolean v2, p0, Lcom/xingbook/audio/a/d;->i:Z

    if-eqz v2, :cond_6

    const/4 v2, 0x0

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->i:Z

    move v2, v1

    :goto_0
    iget-object v3, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-nez v3, :cond_5

    const/4 v2, 0x0

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->j:Z

    :goto_1
    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->m:Lcom/xingbook/audio/a/e;

    invoke-interface {v1}, Lcom/xingbook/audio/a/e;->a()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    :goto_2
    monitor-exit p0

    return v0

    :cond_1
    :try_start_1
    iget-object v2, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    iget v3, p0, Lcom/xingbook/audio/a/d;->l:I

    if-ne v2, v3, :cond_2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->i:Z

    move v0, v1

    :cond_2
    iget-boolean v2, p0, Lcom/xingbook/audio/a/d;->j:Z

    if-nez v2, :cond_3

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->j:Z

    move v0, v1

    :cond_3
    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->m:Lcom/xingbook/audio/a/e;

    invoke-interface {v0}, Lcom/xingbook/audio/a/e;->a()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_4
    move v0, v1

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_5
    move v1, v2

    goto :goto_1

    :cond_6
    move v2, v0

    goto :goto_0
.end method

.method public b()Lcom/xingbook/audio/b/a;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->f:Lcom/xingbook/audio/b/a;

    return-object v0
.end method

.method public declared-synchronized b(Ljava/lang/String;)Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized c()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->i:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->j:Z

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->notifyDataSetChanged()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v0, 0x1

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized d()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/audio/a/d;->i:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized e()Z
    .locals 4

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->j()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->i:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/audio/a/d;->j:Z

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->notifyDataSetChanged()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_1
    const/4 v0, 0x0

    monitor-exit p0

    return v0

    :cond_2
    :try_start_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    instance-of v2, v0, Lcom/xingbook/b/n;

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    check-cast v0, Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_3
    :try_start_2
    instance-of v2, v0, Lcom/xingbook/park/b/f;

    if-eqz v2, :cond_0

    check-cast v0, Lcom/xingbook/park/b/f;

    invoke-virtual {v0}, Lcom/xingbook/park/b/f;->g()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/n;

    iget-object v3, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_1
.end method

.method public declared-synchronized f()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/audio/a/d;->j:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public g()Z
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/a/e;->g()Z

    move-result v0

    return v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7

    const/4 v6, -0x1

    const/4 v3, 0x1

    const/4 v4, 0x0

    invoke-virtual {p0, p1}, Lcom/xingbook/audio/a/d;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne p1, v1, :cond_1

    iget-object p2, p0, Lcom/xingbook/audio/a/d;->c:Lcom/xingbook/park/c/a/o;

    :cond_0
    :goto_0
    return-object p2

    :cond_1
    if-eqz v0, :cond_5

    instance-of v1, v0, Lcom/xingbook/park/b/f;

    if-eqz v1, :cond_5

    check-cast v0, Lcom/xingbook/park/b/f;

    if-eqz p2, :cond_3

    instance-of v1, p2, Lcom/xingbook/park/c/a/t;

    if-eqz v1, :cond_3

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/c/a/t;

    if-nez p1, :cond_2

    move v2, v3

    :goto_1
    invoke-virtual {v1, v0, v2}, Lcom/xingbook/park/c/a/t;->a(Lcom/xingbook/park/b/f;Z)V

    goto :goto_0

    :cond_2
    move v2, v4

    goto :goto_1

    :cond_3
    new-instance p2, Lcom/xingbook/park/c/a/t;

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/d;->a:F

    iget-object v5, p0, Lcom/xingbook/audio/a/d;->e:Lcom/xingbook/park/c/a/m;

    invoke-direct {p2, v1, v2, v5}, Lcom/xingbook/park/c/a/t;-><init>(Landroid/app/Activity;FLcom/xingbook/park/c/a/m;)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    const/4 v2, -0x2

    invoke-direct {v1, v6, v2}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {p2, v1}, Lcom/xingbook/park/c/a/t;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    if-nez p1, :cond_4

    :goto_2
    invoke-virtual {p2, v0, v3}, Lcom/xingbook/park/c/a/t;->a(Lcom/xingbook/park/b/f;Z)V

    goto :goto_0

    :cond_4
    move v3, v4

    goto :goto_2

    :cond_5
    if-eqz v0, :cond_d

    instance-of v1, v0, Lcom/xingbook/b/n;

    if-eqz v1, :cond_d

    check-cast v0, Lcom/xingbook/b/n;

    if-eqz p2, :cond_9

    instance-of v1, p2, Lcom/xingbook/park/c/a/n;

    if-eqz v1, :cond_9

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/c/a/n;

    invoke-interface {v1}, Lcom/xingbook/park/c/a/n;->getResType()I

    move-result v1

    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v2

    if-ne v1, v2, :cond_9

    instance-of v1, p2, Lcom/xingbook/audio/d/g;

    if-eqz v1, :cond_7

    move-object v1, p2

    check-cast v1, Lcom/xingbook/audio/d/g;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v2

    if-nez p1, :cond_6

    :goto_3
    invoke-virtual {v1, v0, v4, v2, v3}, Lcom/xingbook/audio/d/g;->a(Lcom/xingbook/b/n;ZIZ)V

    goto :goto_0

    :cond_6
    move v3, v4

    goto :goto_3

    :cond_7
    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/c/a/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v2

    if-nez p1, :cond_8

    :goto_4
    invoke-interface {v1, v0, v2, v3}, Lcom/xingbook/park/c/a/n;->a(Lcom/xingbook/b/n;IZ)V

    goto :goto_0

    :cond_8
    move v3, v4

    goto :goto_4

    :cond_9
    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v1

    invoke-virtual {p0, v1, v3}, Lcom/xingbook/audio/a/d;->a(IZ)Lcom/xingbook/park/c/a/n;

    move-result-object v2

    if-eqz v2, :cond_0

    new-instance v5, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v5, v6, v6}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    move-object v1, v2

    check-cast v1, Landroid/view/View;

    invoke-virtual {v1, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    instance-of v1, v2, Lcom/xingbook/audio/d/g;

    if-eqz v1, :cond_b

    move-object v1, v2

    check-cast v1, Lcom/xingbook/audio/d/g;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v5

    if-nez p1, :cond_a

    :goto_5
    invoke-virtual {v1, v0, v4, v5, v3}, Lcom/xingbook/audio/d/g;->a(Lcom/xingbook/b/n;ZIZ)V

    :goto_6
    check-cast v2, Landroid/view/View;

    move-object p2, v2

    goto/16 :goto_0

    :cond_a
    move v3, v4

    goto :goto_5

    :cond_b
    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v1

    if-nez p1, :cond_c

    :goto_7
    invoke-interface {v2, v0, v1, v3}, Lcom/xingbook/park/c/a/n;->a(Lcom/xingbook/b/n;IZ)V

    goto :goto_6

    :cond_c
    move v3, v4

    goto :goto_7

    :cond_d
    const/4 p2, 0x0

    goto/16 :goto_0
.end method

.method public h()Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/audio/a/d;->k:Z

    return v0
.end method

.method public i()Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gtz v0, :cond_0

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->j:Z

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->i:Z

    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->notifyDataSetChanged()V

    :goto_0
    return v2

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/audio/a/d;->k()I

    move-result v0

    invoke-static {v0}, Lcom/xingbook/c/t;->e(I)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/d/e;->c(Ljava/util/ArrayList;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->j:Z

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->i:Z

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    const-string v1, "\u5220\u9664\u6210\u529f\uff01"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->m:Lcom/xingbook/audio/a/e;

    invoke-interface {v0}, Lcom/xingbook/audio/a/e;->b()V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    const-string v1, "\u5220\u9664\u5931\u8d25\uff01"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/d/e;->b(Ljava/util/ArrayList;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->j:Z

    iput-boolean v2, p0, Lcom/xingbook/audio/a/d;->i:Z

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    const-string v1, "\u5220\u9664\u6210\u529f\uff01"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->m:Lcom/xingbook/audio/a/e;

    invoke-interface {v0}, Lcom/xingbook/audio/a/e;->b()V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/audio/a/d;->b:Landroid/app/Activity;

    const-string v1, "\u5220\u9664\u5931\u8d25\uff01"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method public notifyDataSetChanged()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/audio/a/d;->m:Lcom/xingbook/audio/a/e;

    invoke-interface {v0}, Lcom/xingbook/audio/a/e;->a()V

    invoke-super {p0}, Lcom/xingbook/park/a/e;->notifyDataSetChanged()V

    return-void
.end method
